﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraBars;
using DevExpress.XtraBars.Helpers;
using DevExpress.XtraBars.Ribbon;
using DevExpress.XtraEditors;
using TT.Module.sysLogin;
using System.IO;
using Dev.Control;
using Bill.BasForm;
using TT.ORM;
using DevExpress.XtraSplashScreen;

namespace Sfcorp
{
    public partial class frmMyParam : Dev.Control.MainForm
    {
        string sDefUserFileName = System.IO.Directory.GetCurrentDirectory() + @"\User_Def.xml";

        public frmMyParam()
        {
            InitializeComponent();
            ShowFormThis();
            InitSkinGallery();
            //SplashScreenManager.CloseForm();
        }
        void InitSkinGallery()
        {
            SkinHelper.InitSkinGallery(rgbiSkins, true);
            SkinHelper.InitSkinGallery(rgbiSkins2, true);
            SkinHelper.InitSkinGallery(rgbiSkins3, true);
            SkinHelper.InitSkinGallery(rgbiSkins4, true);
            SkinHelper.InitSkinGallery(rgbiSkins5, true);
        }

        private void ribbon_SelectedPageChanged(object sender, EventArgs e)
        {
            ShowFormThis();
        }

        private void MainFormSms_Load(object sender, EventArgs e)
        {

        }

        private void bbiFind_ItemClick(object sender, ItemClickEventArgs e)
        {
            ActivityForm.F10();
        }

        private void ribbon_Click(object sender, EventArgs e)
        {
            if (htForms.Count == 0)
            {
                ShowFormThis();
            }
        }

        private void ShowFormThis()
        {
        }

        private void bbiAddArea_ItemClick(object sender, ItemClickEventArgs e)
        {
            ActivityForm.NewData();
        }

        private void bbiFind_ItemClick_1(object sender, ItemClickEventArgs e)
        {
            ActivityForm.F11();
        }

        private void bbiUpdate_ItemClick(object sender, ItemClickEventArgs e)
        {
            ActivityForm.F11();
        }

        private void bbiDelete_ItemClick(object sender, ItemClickEventArgs e)
        {
            ActivityForm.F9();
        }

        private void bbiDelFav_ItemClick(object sender, ItemClickEventArgs e)
        {
            ActivityForm.F9();
        }

        private void bbiAddFav_ItemClick(object sender, ItemClickEventArgs e)
        {
            ActivityForm.F10();
        }

        private void bbiUpdateFav_ItemClick(object sender, ItemClickEventArgs e)
        {
            ActivityForm.F11();
        }
        private void bbiSetPrice_ItemClick(object sender, ItemClickEventArgs e)
        {
        }

        private void bbiRefresh_ItemClick(object sender, ItemClickEventArgs e)
        {
            ActivityForm.F9();
        }

        private void bbtRefreshInvHdr_ItemClick(object sender, ItemClickEventArgs e)
        {
            ActivityForm.F9();
        }

        private void bbiRefreshPrice_ItemClick(object sender, ItemClickEventArgs e)
        {
            ActivityForm.RefreshDate();
        }

        private void rgbiSkins3_ItemClick(object sender, ItemClickEventArgs e)
        {
            string s = "";
        }
    }
}